const express = require('express')
const router = express.Router()
const hospitalContorller = require('../contorller/hospitalContorller');
const { verifyToken } = require('../utils/jwt');
router
//用户登录
.post('/login',hospitalContorller.loginHospital)
//添加医生
.post('/addDoctor',verifyToken(),hospitalContorller.addDoctor)
//查询医生列表
.get('/getDoctorList',verifyToken(),hospitalContorller.getDoctorList)
//查看医生详情
.get('/getDoctorDetail',verifyToken(),hospitalContorller.getDoctorDetail)
//修改医生信息
.put('/updateDoctor',verifyToken(),hospitalContorller.updateDoctor)

module.exports = router;